home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / modula2 / 548 < prev    next >
Encoding:
Text File  |  1996-08-06  |  1.4 KB  |  38 lines

  1. Newsgroups: comp.lang.modula2
  2. Path: cix.compulink.co.uk!usenet
  3. From: dcollier@cix.compulink.co.uk ("David Collier")
  4. Subject: For JPI V3 experts only... writing DOS device drivers in M2
  5. Message-ID: <Dq024M.3Hu@cix.compulink.co.uk>
  6. Organization: DexDyne
  7. Date: Wed, 17 Apr 1996 09:24:22 GMT
  8. X-News-Software: Ameol
  9.  
  10.  
  11. I recently went with great trepidation into the .txt file which assigns 
  12. compilers to various file extensions and persuaded TSV3 to use MASM for 
  13. compiling .asm files. It works a treat. I even patched masm so the error 
  14. messages come up in window 0. Wonderful.
  15.  
  16. I need, from time to time, to produce little DOS device drivers. At 
  17. present I have to go and do this in Borland C, and it's a pain in the 
  18. butt. 
  19.  
  20. The only real reason for using C is that the front end of a device driver 
  21. must have a small table of values on it, describing itself. With tlink I 
  22. can control the link order. M2V3 programs  always start with whatever 
  23. gets linked in first.
  24.  
  25. Peering into the same .txt file, I see stuff which can be paraphrased as 
  26. "for a DOS exe file, link in initexe first"
  27.  
  28. Has anyone ever fiddled with this stuff, for instance to add a new file 
  29. type "sys", which says " for SYS files, link in driver.obj, and link 
  30. initexe.obj too".
  31. Then in driver.obj I could use "extrn fred", where fred some label in 
  32. initexe, to ensure initexe gets called. 
  33.  
  34. That would allow me to write my device drivers in M2, and my head could 
  35. cool down a bit.....
  36.  
  37. David.
  38.